package org.hagopa.games.moneypool.msgs.ContentTypes.game;

import java.nio.ByteBuffer;

import org.hagopa.games.moneypool.msgs.CommandsEnum;
import org.hagopa.games.moneypool.msgs.IMsgContent;

public class StartTurn implements IMsgContent{
	private int marshalledSize = 0;
	
	
	public int getSize() {
		return marshalledSize;
	}


	public byte[] marshallToByte() {
		ByteBuffer dataArray = ByteBuffer.allocate(128);
		
		byte [] bytes = new byte[16];
		dataArray.putInt(CommandsEnum.PLAY.idx());
		dataArray.rewind();
		this.marshalledSize = 4;
		dataArray.get(bytes,0,bytes.length);
		return bytes;
	}


	public boolean unmarshallFromByte(byte[] content) {
		// TODO Auto-generated method stub
		return false;
	}

}
